package equals;

public class GaoTie
{
	/**
	 * 
	 */
	public static void mainObj()
	{
		System.out.println("----国务院开始建高铁----");
		try
		{
			city();
		} catch (Exception e)
		{
			System.out.println("国务院留的案底");
			e.printStackTrace();
		}
		System.out.println("----国务院结束建高铁----");
	}
	private static void city() throws Exception
	{
		System.out.println("----省长开始建高铁----");
		town();
		System.out.println("----省长结束建高铁----");
	}
	private static void town()
	{
		System.out.println("----村长开始建高铁----");
		try
		{
			you();
		} catch (Exception e)
		{
			e.printStackTrace();
			throw e;
		}finally 
		{
			System.out.println("会有天使替我去爱你");
		}
		System.out.println("----村长结束建高铁----");
	}
	private static void you()
	{
		System.out.println("----你开始建高铁----");
		try
		{
			int a = 60;
			int b = 0;
			int c = 60 / 0;
		} catch (ArithmeticException e)
		{
//			c = 0;
			e.printStackTrace();
			throw e;
		}
		System.out.println("----你结束建高铁----");
	}
	public static void main(String[] args)
	{
		System.out.println("========");
		mainObj();
	}
}
